package com.tuanzi.loan.web.lazy.statistics;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.service.statistics.CommActivityRegisterNewStatService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.statistics.CommActivityRegisterStatRequest;
import com.tuanzi.loan.vo.response.statistics.CommActivityRegisterStatResponse;

/**
* @author weibifeng
*/
public class CommActivityRegisterNewStatistisLazyDataModel extends BaseLazyDataModel<CommActivityRegisterStatRequest, CommActivityRegisterStatResponse> {

	private static final long serialVersionUID = -8524751302590740632L;
	
	private CommActivityRegisterNewStatService commActivityRegisterNewStatService = SpringContextHolder.getBean(CommActivityRegisterNewStatService.class); 

	public CommActivityRegisterNewStatistisLazyDataModel(CommActivityRegisterStatRequest searchRequest) {
		super(searchRequest);
	}

	@Override
	protected Page<CommActivityRegisterStatResponse> doLoad(
			PageSearcher<CommActivityRegisterStatRequest> pageSearcher) {
		return commActivityRegisterNewStatService.list(pageSearcher);
	}

}
